package Demo;

public class Demo32 {
    public static void main(String[] args) {
        Point<Number> p = new Point<Number>();
        p.setObjx(2);
        fun(p);
    }

    public static void fun(Point<? super Number> t1) {

        System.out.println(t1.getObjx());
    }
}

class Point<t> {
    private t objx;
    private t objy;

    public t getObjx() {
        return objx;
    }

    public void setObjx(t objx) {
        this.objx = objx;
    }

    public t getObjy() {
        return objy;
    }

    public void setObjy(t objy) {
        this.objy = objy;
    }
}
